<?php
/**
 * Created by PhpStorm.
 * User: zhanglei
 * Date: 2018/4/12
 * Time: 9:35
 */

namespace app\admin\validate;


use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'captcha'=>'require|captcha',
        'user_name'=> 'require',
        'password'=> 'require',
    ];

    protected $message = [
        'captcha.require' => '请输入验证码',
        'captcha.captcha' => '验证码不正确',
        'user_name.require'=> '请输入用户名',
        'password.require'=> '请输入密码',
    ];
}